package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.ZxHuopin;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxHuopinParam;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxHuopinResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 装修货品表 Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2020-11-02
 */
public interface ZxHuopinMapper extends BaseMapper<ZxHuopin> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    List<ZxHuopinResult> customList(@Param("paramCondition") ZxHuopinParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ZxHuopinParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    Page<ZxHuopinResult> customPageList(@Param("page") Page page, @Param("paramCondition") ZxHuopinParam paramCondition);

    List<ZxHuopinResult> ghsPageList(@Param("paramCondition") ZxHuopinParam paramCondition);


    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ZxHuopinParam paramCondition);

    List<Map<String,Object>> listHuopinSelect();

    ZxHuopinResult findBySpec(@Param("paramCondition") ZxHuopinParam paramCondition);

    BigDecimal sumCost(Long btyZxMdzxId);

    List<ZxHuopinResult> findListBySpec(@Param("paramCondition") ZxHuopinParam param);

    void updateKemu(@Param("btyZxHuopinId") String btyZxHuopinId, @Param("btyZxKemuId") Long btyZxKemuId, @Param("btyZxKemuIdView") String btyZxKemuIdView);

    void updateJgc(@Param("btyZxHuopinId") String btyZxHuopinId, @Param("isJgc") String isJgc);
}
